﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.Web.UI.Controls;
using ZX.CRM.Library;
using ZX.CRM.Bussiness;
using ZX.DBModule;
using ZX.Common;

namespace ZX.WebApp.Crm.Sale
{
    public partial class AddOrderInfo : BasePage
    {
        private string strListPerson = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            BTCrmCrustomerOrder order = new BTCrmCrustomerOrder();
            string id = this.GetStringFromQueryString("id", "");
            IList<V_CrmOrderPerson> ListPerson = order.GetCustomerZjPerson(new Guid(id));
            if (ListPerson != null && ListPerson.Count > 0)
            {
                IList<BaseEntity> _ListPerson = new List<BaseEntity>();
                foreach (var _e in ListPerson)
                {
                    _ListPerson.Add(_e);
                }
                strListPerson = _ListPerson.ToJSON().Replace("\n", "").Replace("\r", "").Replace("@@", "");
            }
        }
        public string ListPerson
        {
            get { return strListPerson; }
        }
    }
}